<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>PaleGem: Inc/pgLog.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PaleGem
   &#160;<span id="projectnumber">0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f93dfce691d792349f1c14ede440e2e6.html">Inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">pgLog.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="pg_log_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">Logfile Class</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef PGLOG_H</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PGLOG_H</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;Windows.h&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include&quot;<a class="code" href="_pale_gem_8h.html">PaleGem.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include&lt;string&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include&quot;<a class="code" href="_singleton_8h.html">Singleton.h</a>&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a1d5dab30b404fab91608086105afc78c">   14</a></span>&#160;<span class="preprocessor">#define MAX_BUFFER 1024</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a2052f67aeb5016aafb58554ab72921d4">   16</a></span>&#160;<span class="preprocessor">#define g_PG_pLog g_PG_pPaleGemFramework-&gt;GetLogfile()</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// Log an error to the log, errors always get logged</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a9d319cb096834e97e607cbf49c44df9a">   19</a></span>&#160;<span class="preprocessor">#define PG_LOG_ERROR(msg, hr, file, line)   {g_PG_pLog-&gt;fTextout(RED, false,  &quot;ERROR: %s Error code: %d(File: %s, Line: %d) \n&quot;, msg, hr, file, line);}</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor"></span><span class="comment">// Log an errror to the log, errors always get logged</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a299c567c85bee4b0ae6c49b51d0d1e4b">   21</a></span>&#160;<span class="preprocessor">#define PG_LOG_ERROR_SIMPLE(msg, hr)        {g_PG_pLog-&gt;fTextout(RED, false, &quot;ERROR: %s Error code: %d \n&quot;, msg, hr);}</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor"></span><span class="comment">// Log an error with a DX HRESULT to the log (prints error description)</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// Errors always get logged</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a3cef6f1e29d0aff7aa098fd26016209d">   24</a></span>&#160;<span class="preprocessor">#define PG_DX_LOG_ERROR(hr, file, line)     {g_PG_pLog-&gt;fTextout(RED, false, &quot;DirectX ERROR: %s (code: %d) (File: %s, Line %d) \n&quot;, DXGetErrorDescriptionA(hr), hr, file, line);}</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor"></span><span class="comment">// Log a warning to the log, warnings always get logged</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="pg_log_8h.html#afbfbf47d5f664f5a82f4addce1957a14">   26</a></span>&#160;<span class="preprocessor">#define PG_LOG_WARNING_EX(topic, msg, ...)  {g_PG_pLog-&gt;LogWarning(topic, msg, __VA_ARGS__);}</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span><span class="comment">// Log an info to the log, only when verbosity is set to ALL</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a189945c19bb5df6f876f4b08023c74d2">   28</a></span>&#160;<span class="preprocessor">#define PG_LOG_INFO_EX(topic, msg, ...)     {if (g_PG_pLog-&gt;GetVerbosityLevel() == ALL) g_PG_pLog-&gt;fTextoutTopic(GREEN, topic, msg, __VA_ARGS__);}</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor"></span><span class="comment">// Log an info to the log, this always gets logged</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a9193cf0928732e0fb918da3bf37fd0fe">   30</a></span>&#160;<span class="preprocessor">#define PG_LOG_ALWAYS_EX(topic, msg, ...)   {g_PG_pLog-&gt;fTextoutTopic(GREEN, topic, msg, __VA_ARGS__);}</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">// Topic definitions</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a7b0e5ba43e4597c25bbb8d94152edc6d">   33</a></span>&#160;<span class="preprocessor">#define TOPIC_PGGAME_APP            &quot;pgPaleGemFramework&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a745f8a667ae7f1957d1fd2abe28906df">   34</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TOPIC_PGRENDERER            &quot;pgRenderer&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="pg_log_8h.html#acdf811e639a41cbba66a134320f24727">   35</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TOPIC_PGTIMER               &quot;pgTimer&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a79ddeb2f0f61e59fa6b8eebb9ff4a9bf">   36</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TOPIC_PGMATERIAL            &quot;pgMaterial&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="pg_log_8h.html#ac2c6507460f6498116a9a4f2a679d61c">   37</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TOPIC_PGEVENT_MANAGER       &quot;pgEventManager&quot;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a91313424f49d3dbddd9dbf8b36c34d0c">   38</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TOPIC_FBXLOADER             &quot;FBX Loader&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a4204e12dd51feb8bd0528e2b44495367">   39</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TOPIC_OBJLOADER             &quot;pgOBJLoader&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="pg_log_8h.html#acccdc9b97752a13c0d48cfc4524f309b">   40</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TOPIC_INPUT_EVENT_MANAGER   &quot;pgInputEventManager&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include&quot;<a class="code" href="_i_event_listener_8h.html">IEventListener.h</a>&quot;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665d">   45</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665d">FONTCOLORS</a></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665daf77fb67151d0c18d397069ad8c271ba3">   47</a></span>&#160;    <a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665daf77fb67151d0c18d397069ad8c271ba3">BLACK</a>,</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665daf80f9a890089d211842d59625e561f88">   48</a></span>&#160;    <a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665daf80f9a890089d211842d59625e561f88">RED</a>,</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665daa60bd322f93178d68184e30e162571ca">   49</a></span>&#160;    <a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665daa60bd322f93178d68184e30e162571ca">GREEN</a>,</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665da35d6719cb4d7577c031b3d79057a1b79">   50</a></span>&#160;    <a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665da35d6719cb4d7577c031b3d79057a1b79">BLUE</a>,</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665da2772ad7cd64f03c2aed60f91c69fa69d">   51</a></span>&#160;    <a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665da2772ad7cd64f03c2aed60f91c69fa69d">PURPLE</a>,</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665dae735a848bf82163a19236ead1c3ef2d2">   52</a></span>&#160;    <a class="code" href="pg_log_8h.html#a4fe7492ff9aafa04ec7182b99306665dae735a848bf82163a19236ead1c3ef2d2">YELLOW</a>,</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;};</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="pg_log_8h.html#aed8037a8e253e8baa18057fbdc257ddf">   55</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="pg_log_8h.html#aed8037a8e253e8baa18057fbdc257ddf">EVERBOSITY_LEVEL</a></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;{</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="pg_log_8h.html#aed8037a8e253e8baa18057fbdc257ddfad590443978dc58d64aed5001f56efcdf">   57</a></span>&#160;    <a class="code" href="pg_log_8h.html#aed8037a8e253e8baa18057fbdc257ddfad590443978dc58d64aed5001f56efcdf">RELEASE</a>,</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="pg_log_8h.html#aed8037a8e253e8baa18057fbdc257ddfab1d5eac4b1dca480c8056eaea7663b7a">   58</a></span>&#160;    <a class="code" href="pg_log_8h.html#aed8037a8e253e8baa18057fbdc257ddfab1d5eac4b1dca480c8056eaea7663b7a">ALL</a>,</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;};</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="class_c_logfile.html">   61</a></span>&#160;<span class="keyword">class </span><a class="code" href="_pale_gem_8h.html#ab5e0a0a7e1c934d91f3c922b909c07e7">PALEGEM_API</a> <a class="code" href="class_c_logfile.html">CLogfile</a></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;{</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <a class="code" href="class_c_logfile.html">CLogfile</a>();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    ~<a class="code" href="class_c_logfile.html">CLogfile</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="comment">// Creates a logfile with the specified filename</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordtype">int</span> CreateLogfile(<span class="keyword">const</span> <span class="keywordtype">char</span>* sFilename);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="comment">//Starts a new topic in the logfile </span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordtype">void</span> WriteTopic (<span class="keyword">const</span> <span class="keywordtype">char</span>* sTopic, <span class="keywordtype">int</span> size);     </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="comment">// Writes some simple textstring</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keywordtype">void</span> Textout    (<span class="keyword">const</span> <span class="keywordtype">char</span>* sText);                </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="comment">// Writes simple text in the specified color</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordtype">void</span> Textout    (<span class="keywordtype">int</span> Color, <span class="keyword">const</span> <span class="keywordtype">char</span>* sText);     </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="comment">//Writes simple text in the specified color and if need a list</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordtype">void</span> Textout    (<span class="keywordtype">int</span> Color, <span class="keywordtype">bool</span> bList, <span class="keyword">const</span> <span class="keywordtype">char</span>* sText);     </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="comment">// Writes a formatted string</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordtype">void</span> fTextout   (<span class="keyword">const</span> <span class="keywordtype">char</span>* sText,...);    </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="comment">// Writes a colored formatted string</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">void</span> fTextout   (<span class="keywordtype">int</span> Color, <span class="keyword">const</span> <span class="keywordtype">char</span>* sText,...); </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="comment">// Writes a colored formatted string and if needed a list</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordtype">void</span> fTextout   (<span class="keywordtype">int</span> Color, <span class="keywordtype">bool</span> bList, <span class="keyword">const</span> <span class="keywordtype">char</span>* sText,...); </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="comment">// Writes the result of a function into the log</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordtype">void</span> FunctionResult (<span class="keyword">const</span> <span class="keywordtype">char</span>* sName, <span class="keywordtype">bool</span> bResult);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="comment">// Writes the text under the specified topic</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordtype">void</span> fTextoutTopic (<span class="keyword">const</span> <span class="keywordtype">char</span>* sTopic, <span class="keyword">const</span> <span class="keywordtype">char</span>* sText,...);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="comment">// Writes the colored text under the specified topic</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordtype">void</span> fTextoutTopic (<span class="keywordtype">int</span> Color, <span class="keyword">const</span> <span class="keywordtype">char</span>* sTopic, <span class="keyword">const</span> <span class="keywordtype">char</span>* sText, ...);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="comment">// Set the verbosity level</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="class_c_logfile.html#a7e70b1371c4f79ab4cae247e3822d876">   91</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_logfile.html#a7e70b1371c4f79ab4cae247e3822d876">SetVerbosity</a>(<a class="code" href="pg_log_8h.html#aed8037a8e253e8baa18057fbdc257ddf">EVERBOSITY_LEVEL</a> level) {m_verbosityLevel = level;}</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="comment">// Get verbosity level</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="class_c_logfile.html#ab9189cbe733484e4e356b188780ab360">   93</a></span>&#160;    <a class="code" href="pg_log_8h.html#aed8037a8e253e8baa18057fbdc257ddf">EVERBOSITY_LEVEL</a> <a class="code" href="class_c_logfile.html#ab9189cbe733484e4e356b188780ab360">GetVerbosityLevel</a>() {<span class="keywordflow">return</span> m_verbosityLevel;}</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="comment">// Log a warning</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordtype">void</span> LogWarning(<span class="keyword">const</span> <span class="keywordtype">char</span>* szTopic, <span class="keyword">const</span> <span class="keywordtype">char</span>* szWarning, ...);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="comment">// The file handle pointer</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="class_c_logfile.html#ac851d6b1b00c18264a04e4bf69b2f984">  100</a></span>&#160;    FILE* <a class="code" href="class_c_logfile.html#ac851d6b1b00c18264a04e4bf69b2f984">m_pLogfile</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="comment">// Textbuffer</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="class_c_logfile.html#a0f07b127ccdbf47a0d80fc291a6c2428">  102</a></span>&#160;    std::string <a class="code" href="class_c_logfile.html#a0f07b127ccdbf47a0d80fc291a6c2428">m_sWholeText</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="comment">// Filename of log</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="class_c_logfile.html#a8e40998e4cd62cd8ed9f4a2fc8f5479a">  104</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_c_logfile.html#a8e40998e4cd62cd8ed9f4a2fc8f5479a">m_sFilename</a>;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="comment">// Level of verbosity</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="class_c_logfile.html#a82952cb51a40c327856b0516faadff43">  106</a></span>&#160;    <a class="code" href="pg_log_8h.html#aed8037a8e253e8baa18057fbdc257ddf">EVERBOSITY_LEVEL</a> <a class="code" href="class_c_logfile.html#a82952cb51a40c327856b0516faadff43">m_verbosityLevel</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;};</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 1 2013 11:55:07 for PaleGem by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
